package com.wicket.okrcomponent.integration.dto;


import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc StepDto
 * @使用场景
 */
@Data
public class StepDto extends BaseDto implements Serializable {

    /**
     * 步骤ID:
     */
    @ApiModelProperty("步骤ID")
    private String assistStepId;

    /**
     * 步骤名称:
     */
    @ApiModelProperty("步骤名称")
    private String stepName;

    /**
     * 步骤编码:
     */
    @ApiModelProperty("步骤编码")
    private String stepNameCode;

    /**
     * 编辑下“下一步”名称:
     */
    @ApiModelProperty("编辑下“下一步”名称")
    private String editAssistStepName;

    /**
     * 修订下“下一步”名称:
     */
    @ApiModelProperty("修订下“下一步”名称")
    private String changeAssistStepName;

    /**
     * 排序:
     */
    @ApiModelProperty("排序")
    private Long orderNumber;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      StepDto that = (StepDto) o;
      return  assistStepId == that.assistStepId&&stepName == that.stepName&&stepNameCode == that.stepNameCode&&editAssistStepName == that.editAssistStepName&&changeAssistStepName == that.changeAssistStepName&&orderNumber == that.orderNumber&&subjectLifeCycle == that.subjectLifeCycle&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), assistStepId,stepName,stepNameCode,editAssistStepName,changeAssistStepName,orderNumber,subjectLifeCycle,operationInductionId,operateTime);
    }

}
